package com.spring.student.register;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Register {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        User user = context.getBean(User.class);
        System.out.println(user);
        context.close();
    }
}
